main(a,b,c,r)
{
	for(gets(&a);~scanf("%d%d%d",&a,&b,&c);)
	{
		r=b*b-4*a*c;
		if(!r)puts("This Equation has only one answer");
		else if(r>0)puts("This Equation has two answers");
		else puts("This Equation has no answer");
	}
}
